import httpUtils from "@/core/utils/http.utils";
// service path
const urls = {
    'getSysDsConfPage': `/api/upms/sysDsConf/page`,
    'getSysDsConfById': `/api/upms/sysDsConf/`,
    'saveSysDsConf': `/api/upms/sysDsConf`,
    'updateSysDsConfById': `/api/upms/sysDsConf`,
    'deleteSysDsConfById': `/api/upms/sysDsConf/`,
    'getAllTabs': `/api/upms/sysDsConf/getAllTabs`,
    'getDSName':`/api/gen/generator/getDSName`
};
// service methods
const sysDsConfApi = {
    getSysDsConfPage (param) {
        return httpUtils.get(urls.getSysDsConfPage, param);
    },
    getSysDsConfById(id) {
        return httpUtils.get(urls.getSysDsConfById + id, {});
    },
    saveSysDsConf(param) {
        return httpUtils.postRequest(urls.saveSysDsConf, param);
    },
    updateSysDsConfById(params) {
        return httpUtils.put(urls.updateSysDsConfById, params);
    },
    deleteSysDsConf(id) {
        return httpUtils.delete(urls.deleteSysDsConfById + id);
    },
    getAllTabs (param) {
        return httpUtils.get(urls.getAllTabs, param);
    },
    getDSName () {
        return httpUtils.get(urls.getDSName);
    },

};

export default sysDsConfApi;
